package com.guw.Swing;

import javax.swing.*;
import java.awt.*;

public class TestComboboxDemo01 extends JFrame {
    public TestComboboxDemo01(){
        Container container = this.getContentPane();
        //下拉列表
        JComboBox status = new JComboBox();
        //添加下拉项目内容
        status.addItem(null);
        status.addItem("正在上映");
        status.addItem("正在热映");
        status.addItem("即将下架");
        //加入容器
        container.add(status);

        this.setVisible(true);
        this.setBounds(100,100,300,500);
        this.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);



    }

    public static void main(String[] args) {
        new TestComboboxDemo01();
    }


}
